/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package objetosNegocio;

/**
 *
 * @author QUINTERO
 */
public class Location {
    private int id;
    private String name;
    private String address;
    private String phone;
    private String altitud;
    private String latitud;
    private City city;
    private BillBoard billboard;

    public Location() {
    }

    public Location(int id) {
        this.id = id;
    }

    public Location(int id, String name, String address, String phone, City city, BillBoard billboard) {
        this.id = id;
        this.name = name;
        this.address = address;
        this.phone = phone;
        this.city = city;
        this.billboard = billboard;
    }

    public Location(int id, String name, String address, String phone, String altitud, String latitud, City city, BillBoard billboard) {
        this.id = id;
        this.name = name;
        this.address = address;
        this.phone = phone;
        this.altitud = altitud;
        this.latitud = latitud;
        this.city = city;
        this.billboard = billboard;
    }

    public String getAltitud() {
        return altitud;
    }

    public void setAltitud(String altitud) {
        this.altitud = altitud;
    }

    public String getLatitud() {
        return latitud;
    }

    public void setLatitud(String latitud) {
        this.latitud = latitud;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public BillBoard getBillboard() {
        return billboard;
    }

    public void setBillboard(BillBoard billboard) {
        this.billboard = billboard;
    }

    public City getCity() {
        return city;
    }

    public void setCity(City city) {
        this.city = city;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Location other = (Location) obj;
        if (this.id != other.id) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 53 * hash + this.id;
        return hash;
    }

    @Override
    public String toString() {
        return "Location{" + "id=" + id + ", name=" + name + ", address=" + address + ", phone=" + phone + ", city=" + city + ", billboard=" + billboard + '}';
    }
    
    
}